﻿#ifndef CTIMESPANINTVALIDATOR_H
#define CTIMESPANINTVALIDATOR_H
#include <QIntValidator>
#include "common.h"

namespace ss {

class CTimeSpanIntValidator : public QIntValidator
{
public:
    explicit CTimeSpanIntValidator(int bottom = MIN_LOCK_SPAN, int top = MAX_LOCK_SPAN, QObject *parent = nullptr);

    void setRange(int bottom, int top) override;
    virtual State validate(QString &s, int &n) const override;
    virtual void fixup(QString &input) const override;
};



}


#endif // CTIMESPANINTVALIDATOR_H
